package gdingtalk

var (
	gOption Option
)

type Option struct {
	// 类型，可选值isv、corp
	Type string
	// 钉钉业务相关参数
	// isv模式下配置：{"suiteId":xxx,"appId":xxx,"suiteKey":"xxx","suiteSecret":"xxxxx", "suiteBelongCorpId": "xxxxx"}
	// corp模式下配置：{"agentId":xxxxxx,"appKey":"xxxxxxx","appSecret":"xxxxxx","corpId":"xxxxx"}
	// corp模式下配置,如果要启动http推送需要增加token, aesKey参数：{"agentId":xxxxxx,"appKey":"xxxxxxx","appSecret":"xxxxxx","corpId":"xxxxx","token":"xxxx","aesKey":"xxx"}
	DingParams string
	// 数据库连接，更详细可以参考gorm,连接配置，目前只支持mysql
	// 格式：root:root@tcp(127.0.0.1:3306)/test?charset=utf8&parseTime=True&loc=Local
	DbConn string
	// 缓存连接，更详细可以参考beego缓存，目前只支持redis模式
	// 格式：{"key":"jsgw","conn":"r-bp1cm5ncyvq2hnul81pd.redis.rds.aliyuncs.com:16379","dbNum":"0","password":"rRk2k3nf9JJi283lk119Jvwz"}
	CacheConn string
}
